public abstract class Bullet extends Flyer{
    //属性
    private boolean Reverse = false;//fase,往上飞（英雄机子弹）
    private int Attack;//攻击力
    //构造器
    public Bullet() {

    }
    public Bullet(int x, int y, int attack, boolean reverse,int speed,int width,int hight){
        super(width,hight,x,y,speed);
        this.Attack = attack;
        this.Reverse = reverse;
    }

    //方法


    public boolean getReverse() {
        return Reverse;
    }

    public void setReverse(boolean reverse) {
        Reverse = reverse;
    }

    @Override
    public int getAttack() {
        return Attack;
    }

    @Override
    public void setAttack(int attack) {
        Attack = attack;
    }
}
